﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using GraphicsLib;

namespace TowerDefence.Tiles
{
    public interface ITile
    {
        /// <summary>
        /// The position of the tile in grid coordinates
        /// </summary>
        Vector2 Position { get; }
        void DebugDraw(Graphics2D _graphics);
    }

    public class Tile : ITile
    {
        private Vector2 position;

        public Vector2 Position { get { return this.position; } }

        public Tile(Vector2 _position)
        {
            this.position = _position;
        }

        public override string ToString()
        {
            return String.Format("(X: {0}, Y: {1})", this.position.X, this.position.Y);
        }

        public virtual void DebugDraw(Graphics2D _graphics) { }
    }
}
